﻿@model List<TrackerEnabledDbContext.Common.Models.AuditLogDetail>

@using GridMvc.Html


@{
    ViewBag.Title = "DbTrace";
}

<h2>DbTrace Details</h2>

<p>
   

    <ul>
        <li>
            <b>Type:</b><i>@Model.FirstOrDefault().Log.TypeFullName</i>
        </li>
        <li>
            <b>UserName:</b><i>@Model.FirstOrDefault().Log.UserName</i>
        </li>
        <li>
            <b>EventDateUTC:</b><i>@Model.FirstOrDefault().Log.EventDateUTC</i>
        </li>
        <li>
            <b>EventType:</b><i>@Model.FirstOrDefault().Log.EventType</i>
        </li>
    </ul>
   
</p>
@Html.Grid(Model).Named("DbTraceGrid").Columns(columns =>
          {
              columns.Add(m => m.PropertyName).Titled("PropertyName").SetWidth(110).Filterable(true).Sortable(true);
              columns.Add(m => m.NewValue).Titled("New Value").Filterable(true).Sortable(true);
              columns.Add(m => m.OriginalValue).Titled("OriginalValue").Filterable(true).Sortable(true);
            
          }).WithPaging(50)

